<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>事务管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		function shenqing(di,wid){
			location.href = di+"/ta/stWorkflow/inv?wid="+wid;
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/ta/stWorkflow/">事务列表</a></li>
		<%-- <shiro:hasPermission name="ta:stWorkflow:edit"><li><a href="${ctx}/ta/stWorkflow/form">事务添加</a></li></shiro:hasPermission> --%>
	</ul>
	<%-- <form:form id="searchForm" modelAttribute="stWorkflow" action="${ctx}/ta/stWorkflow/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form> --%>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>序号</th>
				<th>事务类型</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach varStatus="i" items="${page.list}" var="stWorkflow">
			<tr>
				<td>
					${i.count}
				</td>
				<td>
					${stWorkflow.wname}
				</td>
				<td>
    				<a href="javascript:shenqing('${ctx}','${stWorkflow.wid}')">申请</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<%-- <div class="pagination">${page}</div> --%>
</body>
</html>